package com.zpark.mapper;

import com.zpark.pojo.Ranking;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

import java.util.List;

/**
 * @PackageName: com.zpark.mapper
 * @ClassName: IRankingMapper
 * @Description:
 * @author: RZS
 * @date: 2022/10/11  10:34
 */
public interface IRankingMapper extends Mapper<Ranking> {

    @Select("select * from ranking limit #{number}, #{size}")
    List<Ranking> selectPage(@Param("number") Integer number, @Param("size") Integer size);
}
